package states.gameplay.shapors;

import org.newdawn.slick.Graphics;
import org.newdawn.slick.Image;



public class Wallor extends Shapor {

	private Image _render;
	private int _defenseRadius;
	private int _levelDefense;
	
	public Wallor(int deployLimits, 
				  int cost, 
				  int deployPulses,
				  int energyUpkeep,
				  int defenseRadius,
				  int levelDefense,
				  Image render) {
		super(deployLimits, cost, deployPulses, 0, energyUpkeep);
		
		_render = render;
		
		_defenseRadius = defenseRadius;
		
		setLevelDefense(levelDefense);
	}

	@Override
	public void render(Graphics g, int x, int y) {
		//(render.getWidth()+cell_size)/2, startY + y * cell_size - (render.getHeight() + cell_size)/2
		_render.draw(x - (_render.getWidth())/2, y - (_render.getHeight())/2);
	}

	public int getDefenseRadius() {
		return _defenseRadius;
	}

	public void setDefenseRadius(int defenseRadius) {
		this._defenseRadius = defenseRadius;
	}

	public int getLevelDefense() {
		return _levelDefense;
	}

	public void setLevelDefense(int levelDefense) {
		this._levelDefense = levelDefense;
	}

}
